#include "mem.h"

//Set num bytes of memory pointed by ptr to val
void memSet(char *ptr, uchar val, uint num)
{
	uint i;
	for (i=0; i<num; i++)
	{
		*ptr = val;
		ptr ++;
	}
}

//Copy num bytes pointed by source to dest
void memCopy(char *dest, char *source, uint num)
{
	uint i;
	for (i=0; i<num; i++)
	{
		*dest = *source;
		dest ++;
		source ++;
	}
}
